<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>{$headConf['title']}</title>
    <!--描述和摘要-->
    <meta name="Description" content="小贤的博客"/>
    <meta name="Keywords" content="博客"/>
    <!--载入公共模板-->
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/index/bootstrap-3.3.7/css/bootstrap.min.css" />
    <script src="__STATIC__/index/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="__STATIC__/index/bootstrap-3.3.7/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="__STATIC__/index/css/index.css" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/index/css/backTop.css"/>
</head>
<body>
<header>
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <h1>{$_webset['title']}</h1>
            </div>
        </div>
    </div>
</header>
<nav role="navigation" class="navbar navbar-default">
    <div class="container">
        <div class="row">
            <div class="col-sm-12" >

                <div class="navbar-header">
                    <!-- 移动端按钮 -->
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-collapse">

                        <span class="sr-only">切换导航</span>

                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>

                <!-- 菜单 -->
                <div class="collapse navbar-collapse" id="example-navbar-collapse">
                    <ul class="_menu" >
                        <li {if condition="!input('param.')"} class="_active" {/if}>
                            <a href="__ROOT__/index.html">首页</a>
                        </li>
                        {foreach name='_cateData' item='vo'}
                        <li {if condition="input('param.cate_id')==$vo['cate_id']"} class="_active"{/if}>
                            <a href="{:url('index/lists/index',['cate_id'=>$vo['cate_id']])}">
                                {$vo['cate_name']}
                            </a>
                        </li>
                        {/foreach}
                    </ul>
                </div>
            </div>
        </div>
    </div>
</nav>
<section>
    <div class="container">
        <div class="row">
            <!--标签规定文档的主要内容main-->
            <main class="col-md-8">
                {block name='content'}{/block}
            </main>
            <aside class="col-md-4 hidden-sm hidden-xs">
                <div class="_widget">
                    <h4>关于我</h4>
                    <div class="_info">
                        <p>keep walking！</p>
                        <p>
                            <i class="glyphicon glyphicon-volume-down"></i>
                            <a href="/" target="_blank">小贤博客</a>
                        </p>
                    </div>
                </div>
                <div class="_widget">
                    <h4>分类列表</h4>
                    <div>
                        {foreach name='_allCateData' item='vo'}
                        <a href="{:url('index/lists/index',['cate_id'=>$vo['cate_id']])}">
                            {$vo['cate_name']}
                        </a>
                        {/foreach}
                    </div>
                </div>
                <div class="_widget">
                    <h4>标签云</h4>
                    <div class="_tag">
                        {foreach name='_tagData' item='vo'}
                        <a href="{:url('index/lists/index',['tag_id'=>$vo['tag_id']])}">
                            {$vo['tag_name']}
                        </a>
                        {/foreach}
                    </div>
                </div>
            </aside>
        </div>
    </div>
</section>
<footer class="hidden-xs">
    <div class="container">
        <div class="row">
            <div class="col-sm-4">
                <h4 class="_title">最新文章</h4>
                {foreach name='_articleData' item='vo'}
                <div id="" class="_single">
                    <p>
                        <a href="{:url('index/content/index',['arc_id'=>$vo['arc_id']])}">
                            {$vo['arc_title']}
                        </a>
                    </p>
                    <time>{:date('Y年m月d日',$vo['sendtime'])}</time>
                </div>
                {/foreach}
            </div>
            <div class="col-sm-4 footer_tag">
                <div id="">
                    <h4 class="_title">标签云</h4>
                    {foreach name='_tagData' item='vo'}
                    <a href="{:url('index/lists/index',['tag_id'=>$vo['tag_id']])}">{$vo['tag_name']}</a>
                    {/foreach}
                </div>
            </div>
            <div class="col-sm-4">
                <h4 class="_title">友情链接</h4>
                <div id="" class="_single">
                    {foreach name='_linkData' item='vo'}
                    <p><a href="{$vo['link_url']}" target="_blank">{$vo['link_name']}</a></p>
                   {/foreach}
                </div>
            </div>
        </div>
    </div>
</footer>
<div class="footer_bottom">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <a href="">{$_webset['title']}</a>
                |
                <a href="">{$_webset['copyright']}</a>
                |
                <a href="">{$_webset['email']}</a>
            </div>
        </div>
    </div>
</div>
<!--返回顶部自己写的插件-->
<script src="__STATIC__/index/js/backTop.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    $(function(){
        //插件使用
        $('.back_top').backTop({right:30});
    })
</script>
<div class="back_top hidden-xs hidden-md">
    <i class="glyphicon glyphicon-menu-up"></i>
</div>
</body>
</html>